package com.bosicloud.cmb.ibp.aws.adapter.commom.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author Jack Peng / ziliang.peng@bosicloud.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DeployApiParamDTO {

    /**
     * apiId 对应ibp_api表中id
     */
    @NotNull
    @NotBlank(message = "apiId 不能为空")
    String apiId;
    /**
     * apiId 对应ibp_api表中wasApiId
     */
    @NotNull
    @NotBlank(message = "awsApiId 不能为空")
    String awsApiId;

    @NotNull
    @NotBlank(message = "Endpoint URL 不能为空")
    String endpointUrl;

    @NotNull
    @NotBlank(message = "Key ID 不能为空")
    String keyId;

    @NotNull
    @NotBlank(message = "Stage Name 不能为空")
    String stageName;
}
